package com.xlink.repository;
//仓储    mapper从仓储类中调

import com.xlink.dto.Device;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by asus1 on 2015/12/6.
 */
@Repository
public interface DeviceRepository {
    List<Map<String,Object>> list(Map<String,Object> params);
    Map<String,Object> get(@Param("deviceId") Long deviceId);
    void add(@Param("device")Device device);
    Integer update(Map<String,Object> params);
    Integer delete(@Param("deviceId") Long deviceId);
}
